{% extends BASE_TEMPLATE %}{% load i18n %}
{% load thumbnail %}

{% block app_title %}
<h1>{% trans "QGIS Users Map"%}</h1>
{% endblock %}

{% block menu %}
{{ block.super }}
<div class="module_menu">
    <div>
        <div>
            <h3>{% trans "QGIS Users Map" %}</h3>
            <ul class="nav nav-list">
              <li><a href="{% url "show_map" %}">{% trans "Community map"%}</a></li>
              <li><a href="{% url "create_user" %}">{% trans "Add yourself!"%}</a></li>
              <li><a href="{% url "email_update_user_link" %}">{% trans "Update your details"%}</a></li>
            </ul>
            <p class="centered">{{ myUserCount }} {% trans "users mapped" %}</p>
        </div>
        {% if myRandomUser %}
        <div>
            <h3>{% trans "Meet a user" %}</h3>
            <p class="centered">
              <br/>
              {% trans "To appear here you must have uploaded an image." %}
              <br/>
              {% thumbnail myRandomUser.image "100x100" crop="center" as im %}
              <img width="{{ im.width }}" height="{{ im.height }}" src="{{ im.url }}" /><br/>
              {% endthumbnail %}
              {% if myRandomUser.home_url %}<a href="{{ myRandomUser.home_url }}">{% endif %}
              <b>{{ myRandomUser.name }}</b>
              {% if myRandomUser.home_url %}</a>{% endif %}
            </p>
        </div>
        {% endif %}
    </div>
</div>
{% endblock %}

